package org.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.domain.parameter.UserParameter;
import org.example.domain.po.ErpUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.query.UserQuery;
import org.example.domain.vo.ErpUserVO;
import org.example.utils.Result;

import java.util.List;

/**
* @author DELL
* @description 针对表【erp_user(用户表)】的数据库操作Service
* @createDate 2024-10-09 17:03:06
*/
public interface ErpUserService extends IService<ErpUser> {
    List<ErpUser> selectUser();
    
    IPage<ErpUserVO> queryUserPage(UserQuery userQuery);
    
    boolean saveUser(UserParameter userParameter);
    
    boolean updateUser(UserParameter userParameter);
    
    boolean resetPass(Long userId);
    
    Result<String> updateUserStatus(List<String> roleLoginNames, String loginName, Integer status);
    
    Result<String> removeBatchByLoginNames(List<String> roleLoginNames, Long tenantId);
    
    List<ErpUser> findUserByTenantId(Long tenantId);
    
    Boolean getUserCountByUserName(ErpUser user);
    
    String userRegister(ErpUser user);
}
